package kr.pe.mybjj;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class QnAInsert {

	public int execute(HttpServletRequest request, HttpServletResponse response)
	{
		String title = request.getParameter("title");
		String content = request.getParameter("content");
		String userName = request.getParameter("username");
		String password = request.getParameter("password");

		QnADTO dto = new QnADTO(title, content, userName, password);
		QnADAO dao = new QnADAO();
		return dao.insert(dto);
	}
}
